﻿namespace DeHeng_Mes.Constant
{

    /// <summary>
    /// 系统常量
    /// </summary>
    class SystemConstant
    {

        #region 类名匹配常量

        public const string Code = "Code";
        public const string DeviceErrorMessage = "DeviceErrorMessage";
        public const string StationStatus = "StationStatus";
        public const string Power = "Power";
        public const string ProduceOperation = "ProduceOperation";
        public const string ProduceOrder = "ProduceOrder";
        public const string StationError = "StationError";
        public const string Beat = "Beat";
        public const string DeviceErrorStatus = "DeviceErrorStatus";
        public const string Collection = "Collection";
        public const string ProduceStatus = "ProduceStatus";
        public const string CodeHelper = "CodeHelper";
        public const string IssuedCode = "IssuedCode";

        #endregion

        #region 线体名称匹配常量

        public const string Left = "left";
        public const string Right = "right";
        public const string Small = "small";
        public const string StudWeld = "studWeld";
        public const string Fds = "fds";

        #endregion

        #region 订单状态常量
        public const string Ok = "1";
        public const string nOk = "2";
        public const string nCreate = "0";
        public const string illegal = "-1";
        #endregion

        #region 数据采集状态常量
        public const string InsertTableIllegal = "2";
        public const string dataNotCreate = "0";
        public const string InsertDataIllegal = "1";
        #endregion

        #region 订单状态常量
        public const string DeviceOk = "2";
        public const string DeviceNOk = "1";
        #endregion

        #region db块
        public const int Write = 6005;
        public const int Hart = 6011;
        public const int Order = 6008;
        public const int GetCode = 6014;
        #endregion

        #region 线程阻塞常量
        public const int Polling = 10000;
        #endregion

        #region 数采文件路径常量
        public const string RightGlueRemovalPath = @"D:\chujiao\右侧围R73视觉检测\AirRobots\VisionXData\Images\";
        public const string LeftGlueRemovalPath = @"D:\chujiao\左侧围R73视觉检测\AirRobots\VisionXData\Images\";

        public const string fdsCopyPath = @"D:\chujiao\SeqFds2";
        public const string fdsLoadPath = @"D:\chujiao\SeqFds\";

        public const string swOriginPath = @"C:\IVOSTUD\IVOSTUD Data Files\";
        public const string swSavePath = @"D:\chujiao\sw\";
        public const string swSuffix = "Prozessdaten";

        public const string leftGluesharedFoldUsername = "m2iftp";
        public const string leftGluesharedFoldPassword = "yq123456";
        public const string leftGlueSavePath = @"F:\云起F3线体Mes\F3工艺设备数据文件\chujiao\leftglueblead\F3\";
        public const string leftGlueSaveImgPath = @"F:\云起F3线体Mes\F3工艺设备数据文件\chujiao\rightgluebead\pic\ErrorImages\";
        public const string leftGluesharedFoldImgPath = @"\\192.168.6.242\pic\ErrorImages\";
        public const string leftGluesharedFoldPath = @"\\192.168.6.242\GlueBeadInfo\F3\";

        public const string rightGluesharedFoldPath = @"\\192.168.6.242\GlueBeadInfo\F3\";
        public const string rightGluesharedFoldUsername = "m2iftp";
        public const string rightGluesharedFoldPassword = "yq123456";
        public const string rightGlueSavePath = @"F:\云起F3线体Mes\F3工艺设备数据文件\chujiao\SeqFds\";
        public const string rightGlueSaveImgPath = @"F:\云起F3线体Mes\F3工艺设备数据文件\chujiao\rightgluebead\pic\ErrorImages\";
        public const string rightGluesharedFoldImgPath = @"\\192.168.6.242\pic\ErrorImages\";

        public const string smallGluesharedFoldPath = @"\\192.168.6.242\GlueBeadInfo\F3\";
        public const string smallGluesharedFoldUsername = "m2iftp";
        public const string smallGluesharedFoldPassword = "yq123456";
        public const string smallGlueSavePath = @"F:\云起F3线体Mes\F3工艺设备数据文件\chujiao\SeqFds\";
        public const string smallGlueSaveImgPath = @"F:\云起F3线体Mes\F3工艺设备数据文件\chujiao\rightgluebead\pic\ErrorImages\";
        public const string smallGluesharedFoldImgPath = @"\\192.168.6.242\pic\ErrorImages\";

        public const string leftGlueCopyPath = @"D:\chujiao\Left65Glue\";
        public const string leftGlueLoadPath = @"/SdCard1/ExportData/TS_Log/Logging/LOG_5/";
        public const string rightGlueCopyPath = @"D:\chujiao\RightR65Glue\";
        public const string rightGlueLoadPath = @"/SdCard1/ExportData/TS_Log/Logging/LOG_5/";
        public const string smallGlueCopyPath = @"D:\chujiao\smallGlue\";
        public const string smallGlueLoadPath = @"/SdCard1/ExportData/TS_Log/Logging/LOG_5/";

        public const string SpotWeldingPath = @"\\192.168.6.244\DATAcsv2\";
        #endregion

        #region 数采读取天数限制
        public const int day = 8;
        #endregion

        #region 数采错误数据保存天数限制
        public const int errorDay = 1;
        #endregion

        #region 数据库用户信息
        public const string MySqlName = "root";
        public const string MySqlPassWord = "cqyq-123456";
        #endregion

        #region 调用接口Url
        public const string ProduceHourUrl = "http://" + FACTORY_MES_IP + ":" + FACTORY_MES_PORT + "/production/processTask/yieldAnalysis";
        public const string ProduceOperationUrl = "http://" + FACTORY_MES_IP + ":" + FACTORY_MES_PORT + "/production/processTask/processReport";
        public const string AndonUrl = "http://" + FACTORY_MES_IP + ":" + FACTORY_MES_PORT + "/andon/andonCall/autoCall";
        public const string StartTimeUrl = "http://" + FACTORY_MES_IP + ":" + FACTORY_MES_PORT + "/production/orderInfo/chime";
        public const string BossProducePutUrl = "http://" + FACTORY_MES_IP + ":" + FACTORY_MES_PORT + "/production/orderInfo/report";
        #endregion

        #region DB块常量
        public const int DB6000 = 6000;
        public const int DB6001 = 6001;
        public const int DB6002 = 6002;
        public const int DB6003 = 6003;
        public const int DB6004 = 6004;
        public const int DB6005 = 6005;
        public const int DB6006 = 6006;
        public const int DB6007 = 6007;
        public const int DB6008 = 6008;
        public const int DB6009 = 6009;
        public const int DB6010 = 6010;
        public const int DB6011 = 6011;
        public const int DB6012 = 6012;
        public const int DB6013 = 6013;
        public const int DB6014 = 6014;
        public const int DB6015 = 6015;
        #endregion

        #region 调用工厂Mes接口常量
        public const string FACTORY_MES_IP = "192.168.20.2";
        public const string FACTORY_MES_PORT = "8089";
        public const string FACTORY_MES_USERNAME = "jb-f2-line";
        public const string FACTORY_MES_PASSWORD = "MvqlVf13Wd9qDInTlMgEdO7L2so4S4AutU6eyoN90fMS5fltFRHcqhBEE+1z6frGed+22XcMy//cYm6jjRWtrw==";
        public const string FACTORY_MES_TOKEN_CACHE_KEY = "token";
        public const double FACTORY_MES_TOKEN_CACHE_EXPIRY = 20;
        #endregion

    }
}
